config: Fix some synchronization issues

The file read errors could interleave randomly since there was no
synchronization in place really. Changed the code to use channels.

Also had to extend the log package a bit for the new logging needs.

Change-Id: f65def0942
Story-Id: 78913390