Check and metric definitions for postgres locks not granted