it seems like it would be a good idea to check for non dpkg owned versions of problem libraries sitting in that directory in the preinst and either aborting the upgrade before the system is left in a badly broken state or moving the files out of the way.