dpkg: Only allocate STATOVERRIDEFILE and DIVERSIONSFILE paths once
There's no point in reallocating these on every function invocation,
if in the future we need to change the paths between calls, then the
function can be reworked to take a pathname for example.