ptrace: Handle solib data from a thread

This fixes a nasty bug where kcov would lock up if there is much solib
data (many shared libraries). This was because the pipe buffers are
64KB and that the writer starts writing without anyone reading the
pipe. Then the writer will stall after having written 64KB.

The --skip-solibs options is now unnecessary, although it might save
some running time.