stm32f103rey6: fix hwtimer

Using just the four C&C registers from TIM2 for timer and taking in
account that the timer is only 16 bit.

Small add-on: removed debug printf in thread_stack_init()