thread safe malloc; smaller words