make getting a lock manager a bit more generic