scripts: Add helper script to log locking information using /proc/locks