Switch to non-deprecated threading API in InfStandaloneIo and InfGtkIo