Changes to walletpassphrase

Make sure timeout value is within range.
Passing zero will unlock for 2.92 billion years.
Lock the wallet while setting the fWalletUnlockMintOnly Flag.