lib: Enhance poll_funcs_tevent for multiple tevent_contexts