assert_owns_lock fix