Unlock current repo before unlock submodules
Move git-crypt unlock code to a function and unlock the current dir before looping through submodules.
Move git-crypt unlock code to a function and unlock the current dir before looping through submodules.