Test bugfix: bugfixed RTOS (mutex, semaphore) - not thread safe stdio causes test result prints to be interrupted by threads' printing

test bugfix: added support for targetID print from device for 'hello world' and 'stdio' testcases