[FIX] Site: Only store complete mapping

If the site is interrupted while loading the namespaces the stored
namespaces might be invalid/incomplete. This buffers the namespaces and
only stores it after the mapping has been build.

Bug: 73122
Change-Id: I64418dca1b66418dfb893b83f8d141b372bd2380