Fix erts_schedule_misc_op() so it can be called from arbitrary threads
Fix erts_schedule_misc_op() so it can be called from arbitrary threads

Tracing to port could cause an emulator crash when unloading the
trace driver.

ahmedshafeeq/otp,marquisthunder/otp,lrascao/otp,msantos/otp,lianghaivv/otp,enikki/otp,ader1990/otp,release-project/otp,jinshana/otp,lightcyphers/otp,massemanet/otp,emile/otp,ader1990/otp,lianghaivv/otp,awetzel/otp,weisslj/otp,c-rack/otp,entropiae/otp,basho/otp,legoscia/otp,cnbin/otp,RoadRunnr/otp,RichMorin/otp,derek121/otp,jamesruan/otp,psyeugenic/otp,erlang/otp,vinoski/otp,RGafiyatullin/otp,psyeugenic/otp,ader1990/otp,benoitc/otp-1,schlagert/otp,RoadRunnr/otp,beni55/otp,rlipscombe/otp,Teino1978-Corp/erlang-otp,RGafiyatullin/otp,derek121/otp,krishnakumar4a4/otp,paulcager/otp,uabboli/otp,weisslj/otp,falkevik/otp,g-andrade/otp,msantos/otp,saleyn/otp,potatosalad/otp,aboroska/otp,mujiatong/otp,krishnakumar4a4/otp,derek121/otp,ferd/otp,haguenau/otp,electricimp/otp,g-andrade/otp,falkevik/otp,lhslll/otp,hairyhum/otp,sitexa/otp,uabboli/otp,lrascao/otp,palas/otp,dgud/otp,lightcyphers/otp,Teino1978-Corp/otp,RaimoNiskanen/otp,basho/otp,lianghaivv/otp,schlagert/otp,bjorng/otp,aboroska/otp,cobusc/otp,enikki/otp,Teino1978-Corp/otp,dgud/otp,palas/otp,lemenkov/otp,mujiatong/otp,benoitc/otp-1,sitexa/otp,vinoski/otp,saleyn/otp,isvilen/otp,mikpe/otp,legoscia/otp,gjaldon/otp,vladdu/otp,beni55/otp,goertzenator/otp,yangchengjian/otp,psyeugenic/otp,dumbbell/otp,RGafiyatullin/otp,lianghaivv/otp,bernardd/otp,RaimoNiskanen/otp,matwey/otp,marquisthunder/otp,bjorng/otp,release-project/otp,mikpe/otp,emile/otp,mikpe/otp,RoadRunnr/otp,basho/otp,emile/otp,RJ/otp,g-andrade/otp,paladim/otp,fenollp/otp,bjorng/otp,potatosalad/otp,ahmedshafeeq/otp,saleyn/otp,enikki/otp,schlagert/otp,msantos/otp,entropiae/otp,Teino1978-Corp/erlang-otp,weisslj/otp,sitexa/otp,tuncer/otp,bsmr-erlang/otp,klarna/otp,jj1bdx/otp,mikpe/otp,Teino1978-Corp/erlang-otp,krishnakumar4a4/otp,vinoski/otp,palas/otp,vladdu/otp,RJ/otp,sdebnath/otp,platinumthinker/otp,vladdu/otp,g-andrade/otp,bsmr-erlang/otp,fenollp/otp,emacsmirror/erlang,fenollp/otp,isvilen/otp,sdebnath/otp,isvilen/otp,aboroska/otp,sdebnath/otp,jj1bdx/otp,enikki/otp,ferd/otp,cnbin/otp,legoscia/otp,bsmr-erlang/otp,bjorng/otp,sitexa/otp,potatosalad/otp,RichMorin/otp,tuncer/otp,paladim/otp,marquisthunder/otp,weisslj/otp,weisslj/otp,goertzenator/otp,RaimoNiskanen/otp,vinoski/otp,lrascao/otp,massemanet/otp,kvakvs/otp,lucafavatella/otp,benoitc/otp-1,jj1bdx/otp,potatosalad/otp,lemenkov/otp,cnbin/otp,uabboli/otp,bernardd/otp,msantos/otp,isvilen/otp,aboroska/otp,paulcager/otp,awetzel/otp,paulcager/otp,jemsbhai/otp,VincentHHL/otp,hairyhum/otp,VincentHHL/otp,hairyhum/otp,potatosalad/otp,lucafavatella/otp,GinjaNinja32/otp,Teino1978-Corp/erlang-otp,RGafiyatullin/otp,bugs-erlang-org/otp,vladdu/otp,NOMORECOFFEE/otp,lightcyphers/otp,lantti/otp,NOMORECOFFEE/otp,dgud/otp,weisslj/otp,saleyn/otp,benoitc/otp-1,sdebnath/otp,RGafiyatullin/otp,jamesruan/otp,falkevik/otp,ahmedshafeeq/otp,bjorng/otp,benoitc/otp-1,krishnakumar4a4/otp,g-andrade/otp,RaimoNiskanen/otp,lemenkov/otp,entropiae/otp,cobusc/otp,neeraj9/otp,getong/otp,getong/otp,beni55/otp,riverrun/otp,krishnakumar4a4/otp,sammoth-wazoku/otp,johanclaesson/otp,platinumthinker/otp,legoscia/otp,RaimoNiskanen/otp,release-project/otp,entropiae/otp,RaimoNiskanen/otp,release-project/otp,jinshana/otp,dgud/otp,bernardd/otp,vinoski/otp,ader1990/otp,aboroska/otp,bernardd/otp,yangchengjian/otp,saleyn/otp,RGafiyatullin/otp,awetzel/otp,palas/otp,stolen/otp,msantos/otp,electricimp/otp,bjorng/otp,cnbin/otp,benoitc/otp-1,neeraj9/otp,rlipscombe/otp,lrascao/otp,RGafiyatullin/otp,jemsbhai/otp,mikpe/otp,yangchengjian/otp,mujiatong/otp,sammoth-wazoku/otp,marquisthunder/otp,mikpe/otp,g-andrade/otp,gjaldon/otp,erlang/otp,lhslll/otp,vic/otp,electricimp/otp,aboroska/otp,lantti/otp,getong/otp,riverrun/otp,NOMORECOFFEE/otp,klarna/otp,rlipscombe/otp,falkevik/otp,jemsbhai/otp,theom/otp,RichMorin/otp,ahmedshafeeq/otp,Teino1978-Corp/erlang-otp,riverrun/otp,dumbbell/otp,dgud/otp,uabboli/otp,yangchengjian/otp,riverrun/otp,cobusc/otp,sdebnath/otp,cobusc/otp,bugs-erlang-org/otp,VincentHHL/otp,cobusc/otp,hairyhum/otp,bjorng/otp,psyeugenic/otp,RoadRunnr/otp,fenollp/otp,mujiatong/otp,dumbbell/otp,weisslj/otp,RaimoNiskanen/otp,bernardd/otp,vic/otp,Teino1978-Corp/otp,ferd/otp,hairyhum/otp,c-rack/otp,NOMORECOFFEE/otp,jemsbhai/otp,tuncer/otp,RichMorin/otp,kvakvs/otp,jj1bdx/otp,jj1bdx/otp,aboroska/otp,rlipscombe/otp,theom/otp,marquisthunder/otp,schlagert/otp,basho/otp,yangchengjian/otp,jinshana/otp,legoscia/otp,johanclaesson/otp,getong/otp,awetzel/otp,uabboli/otp,dgud/otp,GinjaNinja32/otp,ahmedshafeeq/otp,dgud/otp,jj1bdx/otp,isvilen/otp,bsmr-erlang/otp,stolen/otp,lhslll/otp,msantos/otp,RJ/otp,c-rack/otp,jinshana/otp,ferd/otp,cnbin/otp,weisslj/otp,cobusc/otp,dumbbell/otp,yangchengjian/otp,palas/otp,platinumthinker/otp,sammoth-wazoku/otp,vic/otp,GinjaNinja32/otp,kvakvs/otp,riverrun/otp,falkevik/otp,lucafavatella/otp,getong/otp,theom/otp,matwey/otp,jamesruan/otp,erlang/otp,vic/otp,sitexa/otp,ader1990/otp,derek121/otp,aboroska/otp,lhslll/otp,haguenau/otp,erlang/otp,goertzenator/otp,dumbbell/otp,lightcyphers/otp,Teino1978-Corp/erlang-otp,vladdu/otp,lrascao/otp,goertzenator/otp,bernardd/otp,lucafavatella/otp,msantos/otp,benoitc/otp-1,paulcager/otp,kvakvs/otp,jinshana/otp,johanclaesson/otp,bsmr-erlang/otp,RoadRunnr/otp,saleyn/otp,emacsmirror/erlang,cobusc/otp,rlipscombe/otp,jamesruan/otp,sdebnath/otp,falkevik/otp,lrascao/otp,ferd/otp,lightcyphers/otp,vladdu/otp,lantti/otp,vladdu/otp,paladim/otp,tuncer/otp,jinshana/otp,GinjaNinja32/otp,basho/otp,electricimp/otp,haguenau/otp,derek121/otp,goertzenator/otp,marquisthunder/otp,klarna/otp,basho/otp,hairyhum/otp,enikki/otp,neeraj9/otp,lianghaivv/otp,c-rack/otp,haguenau/otp,c-rack/otp,ader1990/otp,lrascao/otp,emacsmirror/erlang,klarna/otp,emile/otp,platinumthinker/otp,vic/otp,ader1990/otp,lhslll/otp,weisslj/otp,falkevik/otp,potatosalad/otp,saleyn/otp,derek121/otp,klarna/otp,matwey/otp,RoadRunnr/otp,lightcyphers/otp,kvakvs/otp,fenollp/otp,tuncer/otp,lianghaivv/otp,Teino1978-Corp/otp,jamesruan/otp,beni55/otp,isvilen/otp,uabboli/otp,RoadRunnr/otp,gjaldon/otp,msantos/otp,lucafavatella/otp,legoscia/otp,massemanet/otp,sammoth-wazoku/otp,stolen/otp,massemanet/otp,platinumthinker/otp,rlipscombe/otp,bjorng/otp,rlipscombe/otp,potatosalad/otp,sdebnath/otp,matwey/otp,theom/otp,lrascao/otp,bugs-erlang-org/otp,jj1bdx/otp,VincentHHL/otp,RichMorin/otp,RichMorin/otp,legoscia/otp,bugs-erlang-org/otp,sitexa/otp,mikpe/otp,saleyn/otp,dumbbell/otp,jemsbhai/otp,fenollp/otp,entropiae/otp,getong/otp,neeraj9/otp,c-rack/otp,Teino1978-Corp/erlang-otp,enikki/otp,psyeugenic/otp,RJ/otp,paladim/otp,matwey/otp,release-project/otp,NOMORECOFFEE/otp,lantti/otp,riverrun/otp,massemanet/otp,massemanet/otp,RJ/otp,g-andrade/otp,lucafavatella/otp,tuncer/otp,lantti/otp,entropiae/otp,bsmr-erlang/otp,cnbin/otp,RichMorin/otp,lightcyphers/otp,release-project/otp,basho/otp,bjorng/otp,g-andrade/otp,ferd/otp,RJ/otp,platinumthinker/otp,neeraj9/otp,haguenau/otp,erlang/otp,haguenau/otp,uabboli/otp,krishnakumar4a4/otp,dumbbell/otp,electricimp/otp,Teino1978-Corp/otp,ferd/otp,goertzenator/otp,GinjaNinja32/otp,ferd/otp,schlagert/otp,electricimp/otp,potatosalad/otp,RaimoNiskanen/otp,bsmr-erlang/otp,electricimp/otp,matwey/otp,sitexa/otp,enikki/otp,uabboli/otp,bugs-erlang-org/otp,kvakvs/otp,erlang/otp,bsmr-erlang/otp,jemsbhai/otp,sammoth-wazoku/otp,emacsmirror/erlang,electricimp/otp,neeraj9/otp,NOMORECOFFEE/otp,bugs-erlang-org/otp,ahmedshafeeq/otp,palas/otp,vladdu/otp,vic/otp,rlipscombe/otp,Teino1978-Corp/erlang-otp,theom/otp,awetzel/otp,vic/otp,lhslll/otp,stolen/otp,fenollp/otp,erlang/otp,ahmedshafeeq/otp,dgud/otp,basho/otp,release-project/otp,jinshana/otp,electricimp/otp,emile/otp,emacsmirror/erlang,bugs-erlang-org/otp,beni55/otp,c-rack/otp,ahmedshafeeq/otp,erlang/otp,klarna/otp,jj1bdx/otp,tuncer/otp,bjorng/otp,schlagert/otp,Teino1978-Corp/otp,kvakvs/otp,beni55/otp,emile/otp,RJ/otp,getong/otp,psyeugenic/otp,dumbbell/otp,jemsbhai/otp,g-andrade/otp,lantti/otp,NOMORECOFFEE/otp,goertzenator/otp,benoitc/otp-1,mikpe/otp,theom/otp,jj1bdx/otp,psyeugenic/otp,VincentHHL/otp,vinoski/otp,isvilen/otp,lhslll/otp,legoscia/otp,getong/otp,vinoski/otp,lantti/otp,cnbin/otp,emile/otp,yangchengjian/otp,emacsmirror/erlang,stolen/otp,massemanet/otp,lianghaivv/otp,GinjaNinja32/otp,RichMorin/otp,vinoski/otp,theom/otp,emacsmirror/erlang,platinumthinker/otp,isvilen/otp,NOMORECOFFEE/otp,sammoth-wazoku/otp,potatosalad/otp,psyeugenic/otp,RoadRunnr/otp,paulcager/otp,jemsbhai/otp,uabboli/otp,Teino1978-Corp/otp,hairyhum/otp,lemenkov/otp,paladim/otp,tuncer/otp,ferd/otp,lucafavatella/otp,stolen/otp,release-project/otp,VincentHHL/otp,dgud/otp,johanclaesson/otp,goertzenator/otp,goertzenator/otp,ader1990/otp,sammoth-wazoku/otp,RoadRunnr/otp,klarna/otp,paulcager/otp,emile/otp,mujiatong/otp,vic/otp,riverrun/otp,paladim/otp,cobusc/otp,paladim/otp,derek121/otp,legoscia/otp,schlagert/otp,riverrun/otp,release-project/otp,Teino1978-Corp/otp,lianghaivv/otp,johanclaesson/otp,gjaldon/otp,VincentHHL/otp,massemanet/otp,dgud/otp,bugs-erlang-org/otp,jamesruan/otp,isvilen/otp,lemenkov/otp,krishnakumar4a4/otp,schlagert/otp,falkevik/otp,jinshana/otp,dumbbell/otp,RaimoNiskanen/otp,emacsmirror/erlang,yangchengjian/otp,klarna/otp,GinjaNinja32/otp,sammoth-wazoku/otp,mujiatong/otp,theom/otp,gjaldon/otp,entropiae/otp,potatosalad/otp,neeraj9/otp,emile/otp,GinjaNinja32/otp,mikpe/otp,bernardd/otp,gjaldon/otp,palas/otp,bernardd/otp,krishnakumar4a4/otp,lantti/otp,emacsmirror/erlang,getong/otp,vladdu/otp,mikpe/otp,rlipscombe/otp,awetzel/otp,jamesruan/otp,haguenau/otp,saleyn/otp,falkevik/otp,platinumthinker/otp,beni55/otp,matwey/otp,hairyhum/otp,neeraj9/otp,RJ/otp,stolen/otp,awetzel/otp,enikki/otp,aboroska/otp,vinoski/otp,mujiatong/otp,johanclaesson/otp,gjaldon/otp,lemenkov/otp,lrascao/otp,haguenau/otp,erlang/otp,erlang/otp,lemenkov/otp,fenollp/otp,lhslll/otp,vinoski/otp,palas/otp,RGafiyatullin/otp,sitexa/otp,tuncer/otp,c-rack/otp,bsmr-erlang/otp,paulcager/otp,matwey/otp,isvilen/otp,kvakvs/otp,jamesruan/otp,fenollp/otp,getong/otp,entropiae/otp,ahmedshafeeq/otp,johanclaesson/otp,paulcager/otp,kvakvs/otp,lucafavatella/otp,rlipscombe/otp,massemanet/otp,jj1bdx/otp,lightcyphers/otp,dumbbell/otp,sdebnath/otp,bernardd/otp,beni55/otp,gjaldon/otp,emacsmirror/erlang,lemenkov/otp,VincentHHL/otp,johanclaesson/otp,derek121/otp,paladim/otp,mujiatong/otp,marquisthunder/otp,matwey/otp,cnbin/otp,marquisthunder/otp,g-andrade/otp,stolen/otp,basho/otp,awetzel/otp