[SPARK-4370] [Core] Limit number of Netty cores based on executor size