DERBY-6011: Prefer unique index when accessing a small number of rows

Backported revision 1442554 from trunk.


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