erts: Fix racy assert in erts_fire_nif_monitor
erts: Fix racy assert in erts_fire_nif_monitor


If is_dying then the resource may be deallocated
by other thread after we release the lock.

erlang/otp,g-andrade/otp,dgud/otp,erlang/otp,rlipscombe/otp,potatosalad/otp,kvakvs/otp,ferd/otp,potatosalad/otp,kvakvs/otp,g-andrade/otp,bjorng/otp,jj1bdx/otp,mikpe/otp,isvilen/otp,kvakvs/otp,potatosalad/otp,ferd/otp,isvilen/otp,dumbbell/otp,ferd/otp,erlang/otp,emacsmirror/erlang,isvilen/otp,rlipscombe/otp,dgud/otp,jj1bdx/otp,erlang/otp,vladdu/otp,mikpe/otp,erlang/otp,dgud/otp,lrascao/otp,isvilen/otp,uabboli/otp,ferd/otp,uabboli/otp,erlang/otp,g-andrade/otp,getong/otp,vinoski/otp,rlipscombe/otp,emacsmirror/erlang,bjorng/otp,vinoski/otp,uabboli/otp,getong/otp,jj1bdx/otp,vinoski/otp,kvakvs/otp,mikpe/otp,dgud/otp,dumbbell/otp,rlipscombe/otp,vinoski/otp,vladdu/otp,dumbbell/otp,bjorng/otp,vladdu/otp,rlipscombe/otp,lrascao/otp,dumbbell/otp,potatosalad/otp,jj1bdx/otp,ferd/otp,kvakvs/otp,emacsmirror/erlang,uabboli/otp,jj1bdx/otp,vladdu/otp,lrascao/otp,potatosalad/otp,erlang/otp,lrascao/otp,kvakvs/otp,ferd/otp,dgud/otp,jj1bdx/otp,getong/otp,vinoski/otp,getong/otp,erlang/otp,rlipscombe/otp,dumbbell/otp,rlipscombe/otp,dgud/otp,lrascao/otp,bjorng/otp,isvilen/otp,ferd/otp,jj1bdx/otp,isvilen/otp,dgud/otp,bjorng/otp,dumbbell/otp,dgud/otp,rlipscombe/otp,getong/otp,dumbbell/otp,isvilen/otp,potatosalad/otp,bjorng/otp,isvilen/otp,mikpe/otp,getong/otp,dumbbell/otp,lrascao/otp,mikpe/otp,emacsmirror/erlang,vinoski/otp,lrascao/otp,emacsmirror/erlang,bjorng/otp,emacsmirror/erlang,g-andrade/otp,uabboli/otp,vinoski/otp,emacsmirror/erlang,erlang/otp,potatosalad/otp,uabboli/otp,kvakvs/otp,g-andrade/otp,potatosalad/otp,rlipscombe/otp,vladdu/otp,getong/otp,dgud/otp,uabboli/otp,emacsmirror/erlang,dumbbell/otp,emacsmirror/erlang,mikpe/otp,erlang/otp,ferd/otp,jj1bdx/otp,dumbbell/otp,jj1bdx/otp,kvakvs/otp,bjorng/otp,vladdu/otp,kvakvs/otp,mikpe/otp,mikpe/otp,emacsmirror/erlang,potatosalad/otp,vinoski/otp,mikpe/otp,lrascao/otp,ferd/otp,g-andrade/otp,vinoski/otp,jj1bdx/otp,vladdu/otp,mikpe/otp,isvilen/otp,vladdu/otp,uabboli/otp,vinoski/otp,lrascao/otp,g-andrade/otp,dgud/otp,getong/otp,g-andrade/otp,g-andrade/otp,g-andrade/otp,potatosalad/otp,vladdu/otp,rlipscombe/otp,bjorng/otp,uabboli/otp,getong/otp,bjorng/otp,isvilen/otp,getong/otp