Print warning message if the lock couldn't be created.