In the CoarrayChecker, add checks for the constraints C1172 and
C1173, which constrain sync-stat-list. Add these checks to
sync-all-stmt, sync-images-stmt, sync-memory-stmt, and
sync-team-stmt. Also add a check for the constraint C1174 in
sync-images-stmt. Update semantics tests for these stmts.
The CheckCoindexedStatOrErrmsg function is a separate function from the
singular function that it is currently called from, because there are future changes planned
which will also need to call this function.
Is there a numbered constraint in the standard that should appear in a comment here?