make conses thread safe

@radumereuta please review
each definition starts at 0 and increments in a particular order.