HDFS-5911. The id of a CacheDirective instance does not get serialized in the protobuf-fsimage. Contributed by Haohui Mai.