Protect interpreter with a mutex