gh-150942: Optimize stringlib split/splitlines with _PyList_AppendTakeRef (gh-155922)