Make volatile

HasStateChanged will be accessed from multiple threads and therefore must be made volatile.
Please send your pull request to the 'servicing' branch and we will take it. 'master' branch is locked. Thanks.