Maintain legacy RTOS behavior before mbed-5

Fork of mbed-rtos by mbed official

no such method: docs