iplib: Fix thread-unsafeness in myipaddr