Refine logic in bn_mont.c and eliminate redundant BN_CTX pulls.