bitcoin/bitcoin — pull request #828 by sipa (2012-02-11 16:04:17+00:00)
Title: Fix wallet locking locking

Fixes some possible race conditions in ThreadCleanWalletPassphrase().