mon: OSDMonitor: disallow nonsensical cache-mode transitions

Fixes: 8155

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>