[agent] utils/findKey perf refactor

removed the path var declaration from the loops

used `_.find` instead of `_.each` to stop the loop if `theKey` is found
Didn't realize findKey was being added. Pretty proud of how well it works in the inspector in terms of giving a name to all of the anonymous functions used