Added mutex to guard httpRequest wrapper