gitlab/ci_template: run valgrind only on MRs but not master and stable branches
The valgrind runs are there to spot obvious problems during the dev phase, not sure we really need to run them in full after each merge.
Should reduce load on the build bots a little.
If any problems slip in they will be picked up soon enough by the MR jobs again.