MDL-44140 badges: Prevent non-owners to change visibility of issued badges

Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
MDL-39752: Behat is parallel!

This patch might not be as clean as it should be - there are some necessary hacks to setup.php

At least it proves all the hacks required and we can now talk about promoting them from hacks,
to well designed features :)