Return an error from BN_mod_inverse if n is 1 (or -1)