that SHOULD work, but check the files inside docker after the update to make sure the right files were changed. ha log should show you the actual path.
one function call in google_map component needs to change to work with the new version of locationlib. if you really want to mod your own it might be better to do so by integrating it as a custom component in /config/customized_component rather than editing files in docker image. that way you don’t have to do it again after next hassio upgrade… or just use @dennyreiter git package, he already did the work.
I can confirm that on hass.io i had to update locationsharinglib manually after getting the invaliduser error. After the switch to the custom component.