Neutron decay in the early universe