I would expect (add-hook 'mu4e-headers-found-hook 'mu4e-headers-fold-all) to automatically fold threads after any query (for some reason setting the default mode to 'folded doesn't apply.
For some reason threads are all unfolded, even though running (mu4e-headers-fold-all) immediately folds all threads when run explicitly.