make conses thread safe

@radumereuta please review
That particularity is exactly what I'm asking for. I don't see it in this diff. Could you point me to some place in the code base?