SERVER-11475 Change recomputePrivilegeData from recursive to iterative to avoid exhausting the stack