[PATCH 1/2] server: Add helper functions to perform atomic stores.