FINALLY fixed the password-thread-timeout-crash!

The random crashes in the Qt App are finally fixed! Tested on Mac, but needs testing on Linux. (Waiting to merge...) Please test and get back to me ASAP since this is a major fix for OT.