fix mutex errors using defer
fix mutex errors using defer

mnsl/Sia,mharkus/Sia,mtlynch/Sia,MrStrong/Sia,NebulousLabs/Sia,mharkus/Sia,rivine/rivine,ericflo/Sia,MrStrong/Sia,mtlynch/Sia,kustomzone/Sia,ChrisSchinnerl/Sia,rivine/rivine,Mingling94/Sia,johnathanhowell/Sia,NebulousLabs/Sia,mnsl/Sia,cyrozap/Sia,ericflo/Sia,ChrisSchinnerl/Sia