Add simple spinlock and atomic test and set implentation

Probably buggy, but w/e, I'll fix it as we go