[SPARK-28582][PYTHON] Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7
[SPARK-28582][PYTHON] Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7

## What changes were proposed in this pull request?

This PR picks up https://github.com/apache/spark/pull/25315 back after removing `Popen.wait` usage which exists in Python 3 only. I saw the last test results wrongly and thought it was passed.

Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7. I add a sleep after the test connection to daemon.

## How was this patch tested?

Run test
```
python/run-tests --python-executables=python3.7 --testname "pyspark.tests.test_daemon DaemonTests"
```
**Before**
Fail on test "test_termination_sigterm". And we can see daemon process do not exit.
**After**
Test passed

Closes #25343 from HyukjinKwon/SPARK-28582.

Authored-by: WeichenXu <b702da6e50975f71fc6618ef763b578cd392d17f@databricks.com>
Signed-off-by: HyukjinKwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

rednaxelafx/apache-spark,milliman/spark,shaneknapp/spark,kiszk/spark,cloud-fan/spark,kiszk/spark,zero323/spark,milliman/spark,taroplus/spark,ptkool/spark,bdrillard/spark,bdrillard/spark,vinodkc/spark,dbtsai/spark,vinodkc/spark,xuanyuanking/spark,holdenk/spark,dongjoon-hyun/spark,pgandhi999/spark,jkbradley/spark,holdenk/spark,pgandhi999/spark,dbtsai/spark,kiszk/spark,mahak/spark,HyukjinKwon/spark,shaneknapp/spark,hvanhovell/spark,gengliangwang/spark,caneGuy/spark,jiangxb1987/spark,vinodkc/spark,spark-test/spark,bdrillard/spark,BryanCutler/spark,skonto/spark,shaneknapp/spark,zuotingbing/spark,WeichenXu123/spark,zero323/spark,witgo/spark,kevinyu98/spark,apache/spark,chuckchen/spark,kevinyu98/spark,ConeyLiu/spark,taroplus/spark,cloud-fan/spark,zzcclp/spark,dbtsai/spark,vinodkc/spark,rednaxelafx/apache-spark,zzcclp/spark,BryanCutler/spark,hvanhovell/spark,dbtsai/spark,chuckchen/spark,goldmedal/spark,mahak/spark,ConeyLiu/spark,ueshin/apache-spark,techaddict/spark,gengliangwang/spark,HyukjinKwon/spark,shuangshuangwang/spark,apache/spark,ptkool/spark,rezasafi/spark,rezasafi/spark,JoshRosen/spark,bdrillard/spark,jiangxb1987/spark,nchammas/spark,srowen/spark,caneGuy/spark,jiangxb1987/spark,bdrillard/spark,jkbradley/spark,JoshRosen/spark,BryanCutler/spark,HyukjinKwon/spark,vinodkc/spark,jiangxb1987/spark,xuanyuanking/spark,xuanyuanking/spark,wzhfy/spark,JoshRosen/spark,goldmedal/spark,wzhfy/spark,mahak/spark,wangyum/spark,apache/spark,skonto/spark,milliman/spark,wangyum/spark,nchammas/spark,maropu/spark,gengliangwang/spark,zzcclp/spark,hvanhovell/spark,taroplus/spark,wzhfy/spark,HyukjinKwon/spark,srowen/spark,cloud-fan/spark,wangyum/spark,maropu/spark,wzhfy/spark,ConeyLiu/spark,nchammas/spark,shaneknapp/spark,BryanCutler/spark,cloud-fan/spark,wzhfy/spark,darionyaphet/spark,pgandhi999/spark,jiangxb1987/spark,nchammas/spark,goldmedal/spark,goldmedal/spark,pgandhi999/spark,wangmiao1981/spark,dongjoon-hyun/spark,jkbradley/spark,holdenk/spark,JoshRosen/spark,kevinyu98/spark,jkbradley/spark,shuangshuangwang/spark,hvanhovell/spark,shaneknapp/spark,kiszk/spark,dongjoon-hyun/spark,techaddict/spark,mahak/spark,srowen/spark,milliman/spark,dbtsai/spark,ptkool/spark,JoshRosen/spark,WeichenXu123/spark,cloud-fan/spark,caneGuy/spark,rezasafi/spark,rednaxelafx/apache-spark,caneGuy/spark,kiszk/spark,spark-test/spark,zero323/spark,nchammas/spark,wzhfy/spark,nchammas/spark,ptkool/spark,caneGuy/spark,taroplus/spark,rezasafi/spark,chuckchen/spark,HyukjinKwon/spark,hvanhovell/spark,xuanyuanking/spark,wangmiao1981/spark,zzcclp/spark,skonto/spark,ueshin/apache-spark,xuanyuanking/spark,witgo/spark,caneGuy/spark,zero323/spark,jkbradley/spark,spark-test/spark,cloud-fan/spark,chuckchen/spark,wangmiao1981/spark,holdenk/spark,wangyum/spark,zuotingbing/spark,HyukjinKwon/spark,dongjoon-hyun/spark,rednaxelafx/apache-spark,WeichenXu123/spark,kiszk/spark,kevinyu98/spark,skonto/spark,matthewfranglen/spark,vinodkc/spark,milliman/spark,zzcclp/spark,BryanCutler/spark,srowen/spark,taroplus/spark,witgo/spark,maropu/spark,rezasafi/spark,WeichenXu123/spark,chuckchen/spark,bdrillard/spark,apache/spark,rednaxelafx/apache-spark,holdenk/spark,zuotingbing/spark,ptkool/spark,apache/spark,shaneknapp/spark,maropu/spark,dongjoon-hyun/spark,ptkool/spark,chuckchen/spark,shuangshuangwang/spark,spark-test/spark,techaddict/spark,zero323/spark,techaddict/spark,shuangshuangwang/spark,rednaxelafx/apache-spark,shuangshuangwang/spark,WeichenXu123/spark,goldmedal/spark,ueshin/apache-spark,cloud-fan/spark,mahak/spark,gengliangwang/spark,shuangshuangwang/spark,rezasafi/spark,witgo/spark,ueshin/apache-spark,zzcclp/spark,techaddict/spark,milliman/spark,JoshRosen/spark,kevinyu98/spark,rezasafi/spark,kiszk/spark,jiangxb1987/spark,ueshin/apache-spark,wangmiao1981/spark,WeichenXu123/spark,WeichenXu123/spark,maropu/spark,ConeyLiu/spark,gengliangwang/spark,zuotingbing/spark,caneGuy/spark,milliman/spark,zzcclp/spark,holdenk/spark,spark-test/spark,wangmiao1981/spark,ConeyLiu/spark,ueshin/apache-spark,rednaxelafx/apache-spark,zuotingbing/spark,darionyaphet/spark,witgo/spark,witgo/spark,dongjoon-hyun/spark,spark-test/spark,zuotingbing/spark,zero323/spark,wangyum/spark,ConeyLiu/spark,hvanhovell/spark,darionyaphet/spark,hvanhovell/spark,zuotingbing/spark,jkbradley/spark,xuanyuanking/spark,wzhfy/spark,dongjoon-hyun/spark,mahak/spark,HyukjinKwon/spark,wangyum/spark,witgo/spark,kevinyu98/spark,darionyaphet/spark,wangmiao1981/spark,taroplus/spark,zero323/spark,maropu/spark,skonto/spark,vinodkc/spark,gengliangwang/spark,jiangxb1987/spark,mahak/spark,BryanCutler/spark,ueshin/apache-spark,skonto/spark,techaddict/spark,JoshRosen/spark,nchammas/spark,skonto/spark,pgandhi999/spark,holdenk/spark,ConeyLiu/spark,pgandhi999/spark,ptkool/spark,xuanyuanking/spark,maropu/spark,dbtsai/spark,BryanCutler/spark,shaneknapp/spark,techaddict/spark,dbtsai/spark,apache/spark,wangyum/spark,darionyaphet/spark,goldmedal/spark,srowen/spark,srowen/spark,darionyaphet/spark,gengliangwang/spark,shuangshuangwang/spark,darionyaphet/spark,jkbradley/spark,taroplus/spark,apache/spark,kevinyu98/spark,spark-test/spark,goldmedal/spark,wangmiao1981/spark,srowen/spark,bdrillard/spark,chuckchen/spark,pgandhi999/spark