librenms: fix another scoping/dependency cycle

Change-Id: I318bca108b9b6407720ad01bd66baaf7be7aa3fe