Fix memory leak in provider_call.

If no channel can be found for a method, free argument arg before
returning.
Fix memory leaks for jobs.

Free the data memory of process and pipe handles in the close callback
for a job.
Merge pull request #987 from oni-link/fix_some_memory_leaks

Fix some memory leaks in job.c and provider.c