Got even MORE debugging in. Added Search by Lock.

Minor bugs resolved. Added ability to search based on lock status. 0 =
Ignore lock status, 1 = all locked, 2 = all unlocked.