I'm not sure there are legitimate use cases, to be honest, but it was possible in Search 5 through the LockFactoryProvider.
See also