created scritps to aid refactoring

these scripts will point issues in code to aid in refactoring.

currently the script will point locks that are not acquired and released in the same scope.