Semiconductor-superconductor transition and magnetoresistance terraces in an ultrathin superconducting Pb nanobridge