Added mutex-based wire bus management.

(This commit builds but is untested.)  This mutex system will replace
the queue I started with for testing.  It makes managing the buses a
little cleaner.