Use relaxed atomic instead of volatile for racy boolean.

This compiles to the same code in practice, but won't invoke undefined
behavior.

Change-Id: I58bb1d51a48d5c3e9029e0834882d666b214bebe
2 files changed