Move defered Unlock() before a possible function return.