[#208] Make context manager thead-safe
Authored by: ozzy-ext 2013-07-27
Parent: [r808]
Child: [r810]