A Small, Portable Lock-Free API