Share compiled functions across runtimes.
Add synch code for calls from compiled to interpreter.