Implement a function that parses a package lockfile and detects circular dependencies within the dependency graph for packages analyzed in Socket.