Germany is proposing a change to its unemployment benefits law so that EU migrants would only be able to access jobless benefits after five years.