ct: Fix crash in ct_hooks_lock
ct: Fix crash in ct_hooks_lock

If a process with a hook lock crashes when it is the
only process with a lock we should return to an unlocked
state and continue as normal.

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