mds: fix MDSMap encoding to be backward-compatible

luckily caught this before it got released