8186466: Fix accessibility and other minor issues in java.base

Reviewed-by: mchung, naoto, martin
30 files changed