The icecc.bbclass needs network access to work properly.
Currently I build with icecc inside a container with network isolation and my icecc daemon runs outside of the build container in my host. The only thing I need to do for using the icecc inside my build container is mounting the unix socket /var/run/icecc/iceccd.socket inside the container.
I think we need something like this mount functionality to have access to some sockets connections inside the tasks that runs on the new namespace created with unshare system call.
This patch is not a the real solution for the problem and is more like an hack so we can use the icecc.bbclass again.