(c)
Notwithstanding any other provision of law, a person serving with an armed force who—
(1)
submitted voluntarily to military authority;
(2)
met the mental competency and minimum age qualifications of sections
504 and
505 of this title at the time of voluntary submission to military authority;
(3)
received military pay or allowances; and
(4)
performed military duties;
is subject to this chapter until such person’s active service has been terminated in accordance with law or regulations promulgated by the Secretary concerned.