Restriction of divisor classes to hypersurfaces in characteristic p