Update the list of the process flags. Note that the lists of pending signals for process and its threads are distinct.