Fix parallel data race related to the background layer

The background layer must be added to the list of layers before
GMenu2X::initMenu() is allowed to modify the list, because adding to
a vector is not thread-safe.