A bizarre law could allow North Carolina lawmakers to flip the outcome of its governor election