Next part of architecture overhaul.
Use custom spinlocks and don't link with libpthread.
Add support for BBUS_SOCKPATH environment variable.