glsl/cache: save and restore ExternalSamplersUsed