Added a mutex protected init flag in the mapping thread. The
init routine of the main thread is suspended until the first
push is made in the mapping.
First tests looked good, further testing is necessary.