The Scottish Parliament has asked MSPs to disclose their sex and trans status as part of a new survey.