[SPARK-3005] Fix spark driver hang in mesos fine-grained mode

https://issues.apache.org/jira/browse/SPARK-3005