Make event flags wait / do callbacks correctly.
sceKernelWaitEventFlagCB() calls callbacks first.
Reschedule the timeout event on callback end.

Darn, missed that 3 times before I caught it.
Merge pull request #1287 from unknownbrackets/callbacks

Callback fixes, event flags edition