Create ungranted_locks.sql

SQL statement showing number of ungranted locks.