the atomic operations in atomic.h weren't really atomic. this is something that was missed in the netport and now fixed.