remove thread api functions now that they are not used
remove @check_null pointer

since we check for null pointers in GitObject constructors, most
of these checks were redundant