fix race condition in hwtimer_spin
improve fix and comment
save one long
improve comments, rename variable