When going through the xmlrpc calls do not hold the lock since deadlock might occur.