6535709: interrupt of wait()ing thread isn't triggerring InterruptedException - test intwait3

Only clear the interrupt state if we will report that it was set

Reviewed-by: dcubed, alanb, phh, coleenp, dice
3 files changed