Background
Now with mentor/mentee relationship managed in a separate database table (to be able to run more queries on it, see parent), we need to make sure setting mentor is safe in get context – it can happen when user first loads their homepage, for instance.
Task objective
Make DatabaseMentorStore::setMentorForUser to be safe to call in GET context, as documented - probably by creating our own job.
Notes
This should happen before we start to use the new store in production, as it will probably trigger warnings about master connection used in GET context.