Section 39. Except by order of the commander-in-chief, or with the commander-in-chief's consent, no unit of the armed forces of the commonwealth shall be ordered without the limits of the commonwealth or leave the commonwealth for any period or purpose whatever, with military property of the United States or of the commonwealth in its possession or use.