_c_buffer_from_obj: do not allow None