Fix lost wakeup of scheduler when enqueuing auxiliary work
Fix lost wakeup of scheduler when enqueuing auxiliary work

When auxiliary work was enqueued on a scheduler, the wakeup of
the scheduler in order to handle this work could be lost. Wakeups
in order to handle ordinary work were not effected by this bug.
The bug only effected runtime systems with SMP support as follows:
* Deallocation of some ETS data structures could be delayed.
* On Linux systems not using the NPTL thread library (typically
  ancient systems with kernel versions prior to 2.6) and Windows
  systems, the {Port, {exit_status, Status}} message from a
  terminating port program could be delayed. That is, it only
  effected port programs which had been started by passing
  exit_status as an option to open_port/2.

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