[After 2.0 GA] Remove usages of Thread.interrupted()

Thread.interrupted() should be used to check if a thread
has been interrupted. When catching InterruptedException,
we already know that the thread has been interrupted, so
no need to check it. Finally, this method also clears the
interrupted flag, which is already cleared by the method
throwing the InterruptedException.