When lock fails, only issue a warning.