Apparently dogecoinrpc can't into thread-safety. Added some locks.
Also fixed an oops with withdraw/donate.