cdodge/update-opaque-key: update user social stats to use the legacy courseId format since that is what the comment service expects

fix broken test, make social_stats more robust based on the caller