np_functions: wait on barrier in a main loop from a task
ppb_core: print an error message for no-main-loop case