[api] fix source handling of packages which are reachable via a local project link which points to a remote project