I wasn't aware that competitive StarCraft had ever banned anything that was intended by the game engine, and Google isn't turning up anything. Could you provide a source?
In tournament play, it isn't "banned" in a sense that you are fouled or disqualified for doing it. It's a map design and racial balance issue, which tournaments usually solve systematically by placing a neutral supply depot to prevent placing a 3rd blocking pylon. Check out [1] or [2] or search for "neutral supply depot" to find some more information.
[1] http://gaming.stackexchange.com/questions/51630/why-are-ther...
[2] http://wiki.teamliquid.net/starcraft2/Buildings#Neutral_buil...
TheMaka already answered this specific case and there is indeed nothing technically "banned" in competitive SC2.
BW however did have a few bugs that were banned by tournament ogranizers [1].
How the pathing trick is actually used to deal with zerglings is to have them walk ontop of the zerglings with the mineral trick and then attack, causing the workers to spread out around the unit trapping them while have the maximum amount of surface area to attack, as seen in this video. http://www.youtube.com/watch?v=X08jueOiGFk#t=140s