userprog: use atomics allocated on "heap"