Assign Framework to PackageTask struct (#4050)
This change helps to keep taskhash internals private
and protects against read/write race conditions against
an internal map. This will also make the framework more
easily accessible in the Real Run Summary