Support the new Postgres row lock modes, 'NO KEY UPDATE' and 'KEY SHARE', using a parameter named "weak" that is False by default.