[PATCH OLK-5.10 3/8] thread_info: Add helpers to snapshot thread flags