Lockframe/location saving across sessions bugfix

Fixed issues where the lock frame setting was not restored properly and
the location of the frame was not restored properly when doing a
reloadui/relog