fix (?) tricky locking issues in the tempo map by adding a second lock and independen...