Improved concurrency fixes

Adopted a lock around  the RInterop.RInit.engine object for all uses of
that object.