Adding $tries count to “waiting for lock” logger.