reset RT::SearchBuilder internal flags

DBIx::SearchBuilder ::CleanSlate reset a search's query, but RT::SearchBulder
has internal state that is recorded for searches also. This commit clears the
internal flags so that a completely clean search can run.

See [issues #23895]
Merge branch '4.0/reset-searchbuilder-flags' into 4.0-trunk