Add arch-specific atomic primitives for spin locks.
Remove arch.h again, include arch-specific heders from common.h