apply patch from Barry Warsaw to fix autopkgtest
python/pkgmanager.cc: Do not create temporary CppPyRef

Instead of creating a CppPyRef with the only purpose of
destroying it, just decrement the reference count.

Reported-by: cppcheck