[kernel] fix bug in event_signal with AUTOUNSIGNAL flag

Would not mark the event as unsignalled before potentially
releasing any waiting threads, which would let them fall through
event_wait until the signalling thread was run again.
1 file changed