mempool: call for constructor for free_objects_type instance

Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
mmu: Fix page_ops initialization for anonymous VMAs

_flags is currently being used to determine which page_ops will be assigned to
the anonymous VMA, however, the variable flags received as a parameter is the
one that must be used for that purpose.

This problem was found while searching for the root of the general protection
faults that were often happening when running our test suite.
Bisect pointed to the commit 55693e5c066b6393c1393c4406b6936b40149f01
The GPF was probably happening due to code that should only proceed with
completely initialized anonymous VMAs.

Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Reviewed-by: Gleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>