wal: release wal locks before renaming directory on init
wal: release wal locks before renaming directory on init

Fixes #5852

wantonsolutions/dinv-etcd,wantonsolutions/dinv-etcd,visheshnp/etcd,jlamillan/etcd,yudai/etcd,visheshnp/etcd,plasticbox/etcd,westhood/etcd,etcd-io/etcd,vimalk78/etcd,dannysauer/etcd,ajityagaty/etcd,a-robinson/etcd,plasticbox/etcd,luxas/etcd,mkumatag/etcd,heyitsanthony/etcd,mqliang/etcd,jonboulle/etcd,sebrandon1/etcd,yudai/etcd,handsomesun/etcd,glevand/coreos--etcd,dannysauer/etcd,lorneli/etcd,bdarnell/etcd,fanminshi/etcd,purpleidea/etcd,coreos/etcd,ktateish/etcd,akauppi/etcd,mkumatag/etcd,CrazyJvm/etcd,lumjjb/etcd,hongchaodeng/etcd,purpleidea/etcd,bluebreezecf/etcd,YuleiXiao/etcd,insequent/etcd,xiang90/etcd,armstrongli/etcd,nekto0n/etcd,tguangch/etcd,swingbach/etcd,etcd-io/etcd,CrazyJvm/etcd,armstrongli/etcd,glevand/coreos--etcd,insequent/etcd,mickep76/etcd,OyTao/etcd_learning,zaphod-concur/etcd,whuwxl/etcd,rnaveiras/etcd,mkumatag/etcd,YuleiXiao/etcd,OyTao/etcd_learning,hongchaodeng/etcd,tguangch/etcd,jonboulle/etcd,ajityagaty/etcd,akauppi/etcd,StorReduce/etcd,rnaveiras/etcd,cockroachdb/etcd,joshix/etcd,qqsun8819/etcd,westhood/etcd,lumjjb/etcd,sebrandon1/etcd,li-ang/etcd,cockroachdb/etcd,linuxcer/etcd,ajityagaty/etcd,joshix/etcd,etcd-io/etcd,whuwxl/etcd,StorReduce/etcd,fanminshi/etcd,luxas/etcd,gyuho/etcd,li-ang/etcd,jlamillan/etcd,ravigadde/etcd,mqliang/etcd,a-robinson/etcd,rchicoli/etcd,rchicoli/etcd,gyuho/etcd,glycerine/etcd,bdarnell/etcd,nekto0n/etcd,wantonsolutions/dinv-etcd,zaphod-concur/etcd,vimalk78/etcd,glycerine/etcd,rnaveiras/etcd,ravigadde/etcd,swingbach/etcd,sinsharat/etcd,linuxcer/etcd,mickep76/etcd,endocode/etcd,heyitsanthony/etcd,qqsun8819/etcd,lorneli/etcd,xiang90/etcd,endocode/etcd,bluebreezecf/etcd,ktateish/etcd,coreos/etcd,sinsharat/etcd,mqliang/etcd,handsomesun/etcd