[1.6.x] Fixed #20865 -- Fixed raw_id_fields to work with callable limit_choices_to.

Backport of d53e574676 from master