AVRO-1062. Java: Remove use of java.rmi.server.UID so things work on Android. Contributed by Kevin Zhao.