Sync with core.
The cache_form bin needs to be purged explicitly to avoid issues.

The cache_form bin is excluded in drupal_flush_all_caches() but if not purged, it may break tasks with mysterious errors thanks to garbage collected.