Backport some test for the lock_manager app