HDFS-2856: bug fix around creation of EncryptedPeer.