rt_event_recv: add a check on the option flag

Either RT_EVENT_FLAG_AND or RT_EVENT_FLAG_OR should be set in the option
flag. If none of them is present, the waiting thread will never be
resumed.
Merge pull request #156 from grissiom/fix-event_recv

rt_event_recv: add a check on the option flag