Make sure BN_sqr never returns a negative BN, in any case

PR #3410