Connect in Lock#lock if required