rtos: move in rtos.h the rtos_type's declaration