Ajax'ed file field doesn't find the form constructor function on rebuild
You will need to include file by using the $form_state['build_info']['files'] array.

For example:

$form_state['build_info']['files'][] = drupal_get_path('module', 'user') . '/user.pages.inc';