osd: improve misdirected op checks