Avoid possible deadlock during voucher xmlrpc sync and correct url generation for xmlrpc