Add runstate swap helpers

Signed-off-by: Jens Axboe <axboe@fb.com>