wrap ffi_event with mutex and ignore EVENT_IDLE when not suspended