There is no need to unlock, because the code below will either fail and kill the process, or succeed and replace the process with the exec:ed binary process.