TRQ-1541. Wrapper calls to setuid and seteuid in retry loops for transient failures.