[SPARK-3476] Remove outdated memory checks in Yarn

See discussion in [JIRA](https://issues.apache.org/jira/browse/SPARK-3476).