Teach barrier placement about mem and sync kinds of barriers
Now that we have the proper distinction of memory and synchronization scope on barriers (!179 (merged), thx @arghdos!), barrier placement should learn to differentiate the two as well, i.e. look at the variable scopes and the tags of the inames involved.