Set all variables written by the notifier thread as volatile.