We can assume wlog $|f(z)| <1, |z| <1$ as otherwise $f$ is constant $1$ by maximum modulus.
Let $M_s=\sup_{s \le r <1}|g'(r)|$. By the limit hypothesis we have $M_s \to 0, s \to 1$. Also extend $g'(1)=0$ so $g'$ is continuos and bounded on $[0,1]$
Then since $\frac{f(s)-f(r)}{s-r}=-\frac{1}{s-r}\int_{[s,r]}g'(t)dt, 0<s<r<1$ we first let $r \to 1$ and by the dominated convergence theorem, we get $\frac{f(s)-1}{s-1}=-\frac{1}{s-1}\int_{[s,1]}g'(t)dt$
But now $|\int_{[s,1]}g'(t)dt| \le M_s(1-s)$ hence by the above (using $M_s \to 0, s \to 1$) one gets $\frac{f(s)-1}{s-1} \to 0, s \to 1$.
But $1-|f(r)| \le |1-f(r)|$ so the above implies that $\frac{1-|f(r)|}{1-r} \to 0, r \to 1$.
Then applying Schwarz Pick for $0 \le s <r<1$:
$|\frac{f(s)-f(r)}{1-\bar f(r) f(s)}| \le |\frac{s-r}{1-rs}|$ or equivalently:
$1-|\frac{s-r}{1-rs}|^2 \le 1- |\frac{f(s)-f(r)}{1-\bar f(r) f(s)}| ^2$ and using the classical identity:
$1-|\frac{w-z}{1-\bar w z}|^2=\frac{(1-|w|^2)(1-|z|^2)}{|(1-\bar w z)|^2}, |w|, |z|<1$, we get:
$\frac{(1-r^2)(1-s^2)}{(1-rs)^2} \le \frac{(1-|f(s)|^2)(1-|f(r)|^2)}{|1-\bar f(r)f(s)|^2}$
Rewriting the above as:
$\frac{|1-\bar f(r)f(s)|^2}{1-|f(s)|^2} \le \frac{1-|f(r)|^2}{1-r^2}\frac{(1-rs)^2}{1-s^2}$ and letting $r \to 1$ we get (using that $\frac{1-|f(r)|^2}{1-r^2} \to 0$ by the first part above) :
$\frac{|1-f(s)|^2}{1-|f(s)|^2} \le 0$ or $f(s)=1, 0 \le s <1$ and that contradicts the assumption at the beggining, so indeed $f$ constant $1$