fix wrong sized spinlock flags argument