Recursively lock Reflex::Class::PathToBase

Need to protect a global resource in Reflex.