goal solutions: allocate solution struct first
goal solutions: allocate solution struct first

fixing
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7ba4506 in hy_goal_get_solution (goal=0x63d230, problem_id=1)
    at /root/libhif.git/libhif/hy-goal.c:1224
1224                        sol->package = pkg;

Closes: #177
Approved by: ignatenkobrain

rpm-software-management/libhif,rpm-software-management/libhif,rpm-software-management/libhif,edynox/libdnf,Conan-Kudo/libhif,Conan-Kudo/libhif,edynox/libdnf,hughsie/libhif,Conan-Kudo/libhif,edynox/libdnf,rpm-software-management/libdnf,edynox/libdnf,rpm-software-management/libdnf,rpm-software-management/libdnf,rpm-software-management/libdnf,hughsie/libhif,rpm-software-management/libhif,hughsie/libhif,Conan-Kudo/libhif,hughsie/libhif