[PATCH openEuler-1.0-LTS] tty: fix read of tty->pgrp outside of ctrl_lock