erts: Fix trace running memory leak
erts: Fix trace running memory leak

If a process is being tracing using 'running' trace and
at the same time polled using erlang:process_info, then
the memory allocated for the tracing will never trigger
a GC as there are no GC tests for when only signals/sys
tasks are run.

This commit moves the GC check so that it is done earlier
in order to catch any memory allocated when executing
signals/sys tasks.

The bug is triggered by running etop towards an idle node.

vinoski/otp,isvilen/otp,isvilen/otp,dgud/otp,rlipscombe/otp,mikpe/otp,g-andrade/otp,jj1bdx/otp,jj1bdx/otp,dgud/otp,isvilen/otp,dumbbell/otp,potatosalad/otp,bjorng/otp,rlipscombe/otp,dumbbell/otp,mikpe/otp,potatosalad/otp,emacsmirror/erlang,bjorng/otp,potatosalad/otp,g-andrade/otp,isvilen/otp,potatosalad/otp,erlang/otp,potatosalad/otp,potatosalad/otp,emacsmirror/erlang,mikpe/otp,erlang/otp,dgud/otp,erlang/otp,mikpe/otp,isvilen/otp,bjorng/otp,dumbbell/otp,g-andrade/otp,g-andrade/otp,vinoski/otp,erlang/otp,jj1bdx/otp,dgud/otp,bjorng/otp,vinoski/otp,dumbbell/otp,mikpe/otp,erlang/otp,g-andrade/otp,jj1bdx/otp,emacsmirror/erlang,vinoski/otp,bjorng/otp,rlipscombe/otp,jj1bdx/otp,mikpe/otp,bjorng/otp,jj1bdx/otp,bjorng/otp,mikpe/otp,rlipscombe/otp,vinoski/otp,vinoski/otp,jj1bdx/otp,g-andrade/otp,rlipscombe/otp,erlang/otp,mikpe/otp,dumbbell/otp,erlang/otp,rlipscombe/otp,dumbbell/otp,jj1bdx/otp,erlang/otp,dgud/otp,isvilen/otp,jj1bdx/otp,erlang/otp,isvilen/otp,dumbbell/otp,dgud/otp,dgud/otp,isvilen/otp,dumbbell/otp,vinoski/otp,emacsmirror/erlang,jj1bdx/otp,mikpe/otp,dgud/otp,bjorng/otp,emacsmirror/erlang,emacsmirror/erlang,rlipscombe/otp,potatosalad/otp,isvilen/otp,mikpe/otp,g-andrade/otp,dgud/otp,bjorng/otp,vinoski/otp,dumbbell/otp,g-andrade/otp,bjorng/otp,emacsmirror/erlang,rlipscombe/otp,isvilen/otp,potatosalad/otp,potatosalad/otp,emacsmirror/erlang,g-andrade/otp,potatosalad/otp,vinoski/otp,rlipscombe/otp,emacsmirror/erlang,g-andrade/otp,dgud/otp,erlang/otp,emacsmirror/erlang,dumbbell/otp,rlipscombe/otp,vinoski/otp