ab130ceb35 added a dependency on scripts.lib.zulip_tools; however, check_postgresql_replication_lag is run on hosts which do not have a zulip tree installed. Inline the simple functions that were imported.
ab130ceb35