Add `update_mocks.sh` script and use it to regenerate mock definitions.