GoPro is close to signing a lease that would dramatically shrink its Bay Area footprint as the action camera maker continues to cut costs.