backend: support backend shutdown for priming thread cancellation
Launching a separate thread to populate map cache has a side effect that
the thread could be scheduled to execute over a shutdown time. If LDAP server
received the request to shutdown, we need to stop processing the
original source and shut the priming thread.
Resolves: rhbz#1327197