Move PlainSocketImpl away from JNI (part 2)

This moves PlainSocketImpl#socket{Set,Get}Option from JNI to IoBridge.

Changed method signatures for these two methods, in order to simplify
the impementation. These are not public methods.

Removed field trafficClass, since we set the traffic class directly
through the socket, there is no need to store the value in Java side.

Added check for SO_TIMEOUT so that it does not call through to IoBridge,
since OpenJDK implementation does not use this socket option on Linux.

Test: CtsLibcoreTestCases
Bug: 28609551
Change-Id: If294bbba4fd21754734bf3b4ecca6c3da3ef26db
6 files changed