[MachineBasicBlock] Use the const_cast(this) trick to reduce duplication