modelbuilder: display error in case of dependency loop

Signed-off-by: Jean Privat <jean@pryen.org>
tests: error_req_loop*

Signed-off-by: Jean Privat <jean@pryen.org>