idevicesyslog: removed unused header include
move thread and socket code to "common" subdir
use new internal common code for thread, mutex, and socket operations