RCORE: optimize atomic reads for x86 and inline scoped lock
RCORE: optimize atomic reads for x86 and inline scoped lock

tim-janik/rapicorn,tim-janik/rapicorn,tim-janik/rapicorn,tim-janik/rapicorn,tim-janik/rapicorn