Improve code gen for localgot

by preventing the optimizer from deleting it