-Added mutex lock for the InitIO() call.
forgot to make the mutex a static varible
Merge pull request #61 from sosh/master

Added mutex lock for the InitIO() call