lib: internal: nativeresolver: solution: p_applyAction: shrink cowmaps after they stabilize

After the action is applied, the solution will not be changed anymore
and it's a good place to free unused space.

Due to the algorithm of setting solution entries, this saves ~30-45% per
each PreparedSolution.