Fix checksum code to work with delegate_to/local_action

Fixes #9704
Update modules to allow USAGE as a valid grant option for postgres