include/threadman_kernel.h: Added event flag attributes and more event wait types.