Update lib/sql to current master for security fixes

- Fully qualify calls to CDB_UserDataSize and cdb_disable_ddl_hooks
- Workaround PostgreSQL bug with potential endless loop

CDB-3059 #resolve