Middle schoolers' access to the course is stratified along racial, socioeconomic, and regional lines, new research finds.