The Coalition has vowed to "define biological sex" in the Sex Discrimination Act as a first-term priority if it wins government.