only one query needed for exercise logs in knowledge map.

Done while discussing possible caching performance issues with @gimick ; he mentioned this issue in passing, and given the recent changes made for similar things, I knew it would be simple to fix!

Tested with no mastery (no errors) and one exercise mastered (proper icon shows).