Fix locking to use os.execute instead of hydra.exec