Gate cached microcompact cache edits to the main thread so background forks cannot alter the shared cache state.