g_lock: Make g_lock_record_store also store userdata