Move set_porcelain_error_msgs to unpack-trees.c and rename it