if acquiring the lock fails i need to make that process wait , until the lock is freed