Fix newlines with the lock error message