There's a patch in the bug report and it appears to be tagged for Thunderbird 153 release.
While I'm here I got to say, it's worrying seeing people not calling out what a bad solution the OP has suggested. Implementing a blind removal of a folder is not good practice. You will forget about this script/unit file. One day you may copy all your Thunderbird data to ~/thunderbird, think you're safe, then boom, it's gone.
Edit: Forgot a key point