There are many threads accessing this map at the same time. It must be
synchronized to avoid infinite loop!

Signed-off-by: Natalia Bartol <natalia.b@zend.com>