Courteous MPC for Autonomous Driving with CBF-inspired Risk Assessment