lib/transaction_dictionary.c: get installed_size obj from pkg metadata correctly.

This lead to incorrect sizes or no size when computing freed/installed size
in the transaction dictionary.