Puts in three changes to avoid a reset even when it's disabled:
- Adds a release-build check for reset being enabled in schedule_reset().
- Adds a release-build check for reset being enabled in fcache_reset_all_caches_proactively().
- Clears reset_pending on detach.
Tested manually on an application that first hit this unwanted reset.
Fixes #3645 (closed)