remove attribute((const)) from arm __pthread_self inline function