Fixed #16856 - Added a way to clear select_related.

Thanks Carl for the suggestion and David Cramer
for the patch.