add a mutex lock and unlock on Menu instance creation