ENGINE-1712, add timeout on lock