added mutex lock for the InitIO() 

Per user request.