mac: Fixed lockups during mode changes.