Britain's decision to pull out of the EU could affect a treaty signed with France to help control the flow of migrants across the English Channel.