SPARK-3965: Ensure that Spark assembly for hadoop2 contains avro-mapred for hadoop2

When building current Spark assembly for hadoop2, the wrong version of avro-mapred is picked. This patch adds org.apache.avro:avro-mapred as direct dependency of the assembly to ensure that the correct version is added to it.