Implemented mutex lock and unlock in function log_to_file inorder to avoid race conditions when two threads simultaneously access the function
Merge branch 'idriver' of https://github.com/cirakas/ilids into idriver