libmemhack: retry reading the config

On SMP systems it can happen quite easily that the config is not
written into the input FIFO, yet.

So retry the non-blocking read 4 times with 250 ms in between.
This way we don't wait longer than a second for the config.
ugtrain: move a debug message into run_preloader()