Replaced redundant code in pForStmtCodeGen with call to loopStmtCodeGen

The code was common to both for and parallel for statements but was being generated separately for both because they did not have a common parent node except for the statement class.