corrected a race affecting deferred deallocation