all pios_board.c: fixed uninitialized usage by reordering init sequence

EventDispatcherInitialize() starts up the eventTask() loop which uses TaskMonitorAdd() and thus depends on TaskMonitorInitialize() having been called before. Otherwise TaskMonitorAdd() uses the up to that point uninitialized static xSemaphoreHandle lock.