add a mutex lock and unlock on Menu instance creation
Merge pull request #1289 from birarda/master

add a mutex lock and unlock on Menu instance creation