Wait for lock file to become available.