lib/tevent: fix race with signals and tevent_common_add_signal