s3: Actually use mem_ctx in net_g_lock_init()