Fix silent exceptions when lock timeout expires before exception raised.