s3-printing: fix potential print db refcount leak