[PATCH libosmo-netif 11/18] tests: osmux: factor out main test loop