Port java.lang from openJdk8, part 4

- New java.lang.ThreadLocal.withInitial method.
- Javadoc cosmetic and generics changes.
- Restored removed SecurityManager checks in System.
- Out and err streams can now change encoding depending
on properties.
- Out and err are now a BufferedOutputStream (size 128).
- Thread#UncaughtExceptionHandler is now a
FunctionalInterface
- Double checked locking for System#console()


Bug: 28666126
Change-Id: I4a715a785578185920e2ee5a16dbe06511c55c23
10 files changed