BUG-1381: remove getLock() and deprecated constructor