[DROOLS-529] fix synchronization of phreak segments creation
(cherry picked from commit f74eb7a980cbb9d3a41f531eaf509a2b498a015e)