How to fix Lock not available in PostgreSQL | DevErrors