Locking unix exercies