Move handshake connection handling of to a thread

This allow the reader to connect later after pcscd is already
initialized