Synchronized access to ResourceCache#unload (TORQUE-1099)