More thread safety around dealloc swizzling.