8008188: Add regression test for 8005875
Summary: Add regression test for crash seen in 8005875. Test is run with G1 and PGCT=0 and issues "jcmd <pid> Thread.print" against itself. Without the fix for 8005875 the test will crash.
Reviewed-by: brutisso