lib: detach self wallet from thread