ldso: move the suid/secure check code closer to env/auxv processing