Allow (non-blocking) pilight-send call from within process-file.

Previously, calling the process-file was a blocking action. Thereby
a subsequent pilight-send call wasn't possible. In the new code
the process-file is ran inside a thread so it will be non-blocking
allowing a subsequent pilight-send call.