mnesia: Improve checkpoint activation
mnesia: Improve checkpoint activation

Fixed a race where some parts of a transaction could
be added to the checkpoint.

There are probably more races here but this improves the current
testcases.

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