Make utils.system.cd thread safe