workaround to fix bug with widgethandler blocking when stopping the mpd thread.
add a lock around writing to the widget; make a method to remove the widgethandler
acquire the osclock when unregistering. remove print statements for locks
remove print statements