DERBY-6211: Mark the end of join optimization with a call to traceEndQueryBlock(); commit derby-6211-13-aa-SelectNode_optimizer.diff.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1512294 13f79535-47bb-0310-9956-ffa450edef68