[Pharo-project] Issue 3232 in pharo: SharedQueue code simplication