lib/cmsis_rtos_v2: Fix overflow in osKernelGetInfo()
lib/cmsis_rtos_v2: Fix overflow in osKernelGetInfo()

If any of the Zephyr version numbers went beyond 99, the "%2d" printf
specifiers would expand to fit and the string would run over the
memory on the stack used for os_str[].

Recent GCC versions (remember native_posix and x86_64 use the host
compiler) were actually detecting this and correctly issuing a warning
(but only if the 3-digit char value would overflow the actual array
size!), which was breaking sanitycheck for me on Fedora 28 and Ubuntu
18.04 build hosts.  Pretty impresive warning.

As it happens this was wasteful anyway; we were spending bytes on the
stack (and in rodata to store the constant which, and the cycles
needed to copy it into place on the stack where it would be
overwritten immediately) when we could just snprintf() directly into
the buffer the user gave us.

Signed-off-by: Andy Ross <c70f9a6bf6ee0cd69c8af4ce5e6b131945769315@intel.com>

nashif/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,explora26/zephyr,nashif/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,punitvara/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,finikorg/zephyr,galak/zephyr,finikorg/zephyr,punitvara/zephyr,nashif/zephyr,finikorg/zephyr,ldts/zephyr,finikorg/zephyr,galak/zephyr,punitvara/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,Vudentz/zephyr,Vudentz/zephyr,explora26/zephyr,ldts/zephyr,galak/zephyr,explora26/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,finikorg/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,punitvara/zephyr,Vudentz/zephyr