A Rhino user has complained about concurrency problems in the interpreter,
and I think the attached diff fixes some problems that could be caused if
the same interpreted function or script was called simultaneously from
two different threads.
git-svn-id: svn://10.0.0.236/trunk@74848 18797224-902f-48f8-a5cc-f745e15eee43