worker: fix Bitbucket Projects permissions sync
Created by: sashaostrikov
This includes using correct external service type and fixing an edge case when the Bitbucket project contains only users which are not yet added to Sourcegraph.
Closes https://github.com/sourcegraph/sourcegraph/issues/38569
Test plan
New unit test added