* fix(mastery): ignore knowledge-base sources that no longer resolve
Refs #2748
* fix(mastery): filter the caller's mounted knowledge bases too
A study session left open across a deletion keeps sending the base it was
mounted with, and that list is merged verbatim with the topic's sources.
Run both through knowledge_base_ref_available so a stale name cannot reach
the tool bundles and raise AccessError.