dbus : fix a deadlock with p_events array