Fixed add_callback_from_signal

The prepare handle needs to be activated in case it's called from the
same thread