expression/smatch_expressions: move expr_set/get_parent functions