Assert lock after emptying queue of operations.