[arch-dev-public] [PATCH 4/4] Make repo locking an atomic process and added timeout argument