Ensure the minor heap is actually empty before reallocating it(cherry picked from flambda-backend commit 85a505610bb3b1900d05347651435b323620f48b)(cherry picked from flambda-backend commit 3583cc128279820f5861b27fb58b095861fc8725) (commit: 0c50c0f)