US stocks close with losses before release of key jobs data