move threaded and the master_interp mutex out of MY_CXT

Accessing MY_CXT on perl < 5.10.0 fetches the object out of a global hash. All
perl data-structure accesses are not thread-safe due to refcounting. This means
that MY_CXT is not a safe place to store anything that controls access to a
specific interpreter.