HDFS-5899: add checks for OP_ADD and OP_MKDIR