s3:g_lock: keep old mylock on error and don't store new mylock on error