So, you're agreeing that the real intent is to ensure the ms is read-write; however, you're objecting to the hack in the first place. That is, this code doesn't care which writable ms it is, only that it's writable.