Add support for inspecting process flags set in p_flag2.

Reviewed by:	jhb
MFC after:	1 week