Test lock manager.