Split http and harbor input socket mutex into get and set mutexes. Use them appropriately. Also cleanup harbor's disconnect code.