proc: Put thread_pid in release_task not proc_flush_pid