demos:c_simple: Make use of BackendWaitEvent().

Signed-off-by: Cyril Hrubis <metan@ucw.cz>