The NuSTAR Extragalactic Surveys: Source Catalog and the Compton-thick Fraction in the UDS Field.