make iomtee use the threadsafe mode in iomux

instead of using its own lock to wrap calls to iomux_run()