MDL-47316 mod_forum: Fix performance of course overview

make more efficient use of mod_info cache by processing courses sequentially.