[mms] Ensure that session IDs are always 32 bytes long (Bug #12041).