cache: introduce big fat lock for debugging purposes.