Improve handling of lifecycle methods in retain-prior-search mode
This way prepare/teardown slots are called exactly as they are without the retain prior search stuff.
I actually would like to implement a better handling of these lifecycle methods, but that will be a task for 5.21 ;-)