[#45]: rtos/os-core.cpp: check locked()
[#45]: rtos/os-core.cpp: check locked()

- prevent thread switches if the scheduler is locked

micro-os-plus/cmsis-plus,micro-os-plus/cmsis-plus,micro-os-plus/cmsis-plus,micro-os-plus/cmsis-plus