cpu/stm32f1: fixes for the cpuid driver

Fixes to the stm32f1 cpuid driver.