Eliminate anonymous class which was mistakenly used as a synchronization
point.
JIRA: NETCONF-827
Change-Id: I3f81c7bda5f08bfc421859c2b0960beca5269c9a Signed-off-by: Jaroslav Tóth <jtoth@frinx.io> Signed-off-by: Robert Varga <robert.varga@pantheon.tech>