made JITFunctionCache thread safe