Added auto-adjustment of "HL_LOCK_TRIES"