Disable MI commands when presence is in lib mode.

Reported by Carlos Oliva @telematico, closing #382

(cherry picked from commit 7058396dfff62769a58103517ae42bf57078b8bd)