obvious bug on lockbox unreg.
minor cleanups
add a readwritelock to util.h
get rid of the wallet registration queue, it was broken in a number of ways:
but most importantly, if you unregistered, and then registered, the registered one would do nothing
if the unregister hadn't been processed from the queue yet