As the National Portrait Gallery turns 50, it is asking how well its collections represent the people—and where there is room for improvement