The lock acquisition in `lockAndWrap()` could have failed with a TimeoutException.