Check for valid LKB in find_lock_by_id() rather than later on when we've already assumed it's a valid array index.
Check for valid LKB in find_lock_by_id() rather than later on when we've
already assumed it's a valid array index.

asp24/resource-agents,stevenraspudic/resource-agents,asp24/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents,stevenraspudic/resource-agents