added mutex for message queue in exampleIOS, fixes #24