Prevent keeping the wallet file locked forever.