ruby: fix bugs in mesi cmp directory protocol