DERBY-5630; intermittent test failure in store/lockTableVTI.sql
   fixing up javadoc, some comments, adjusting some exception class thrown


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