bugfix : the lock needs to be acquired before accessing the iomux->connections array