dpkg 1.17.21

Version bump, rebased the patch against the latest release and
externalised it, adds some inreplaces discussed with upstream to fix
compile issues, and adds a test.

Closes #34114.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
dpkg: add 1.17.21 bottle.