BZ-1148865 - Cloning a repository via REST API doesn't finish on BPM cluster

(cherry picked from commit acf5938de514a871b46faaf7ad4b8d9e7fb5ab5a)