A quantum circuit for measuring the bi-expectation of an operator with applications to non-Hermitian winding numbers