Fixed deadlocks in oplock