make writes to ram_list globals atomic