Add pthread_spinlock_t support when available

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Alter locking on LockedAllocator

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Vector::insert is just wrong...

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Replace some SpinLocks with Mutexes where needed

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>