Changed the bus locking mechanism
from a spinlock to semaphores