A member of the Scottish Government has weighed into the row about double-jobbing as one of his party colleagues is vying to be an MP and MSP.