Avoid race condition with lock_many

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>