Academic affiliation on papers written while between jobs
I suggest using the postdoc affiliation (precisely for the reason you mention and also because you will probably still be there while the paper will be reviewed) and thanking for support the university where you did your Ph.D. in the acknowledgments.