[S] Change in libosmocore[master]: osmo_iofd_register: Guard against calls from wrong state