context.py: Add locks for some thread safety
context.py: Add locks for some thread safety

kreczko/rootpy,ndawe/rootpy,kreczko/rootpy,ndawe/rootpy,rootpy/rootpy,ndawe/rootpy,kreczko/rootpy,rootpy/rootpy,rootpy/rootpy