[BC] Change locking class interface to make it consistent with other methods
[BC] Change locking class interface to make it consistent with other methods

afrihost/BaseCommandBundle,afrihost/BaseCommandBundle