Prevent race condition in embeddedstaticcontent convention builder

As per https://github.com/NancyFx/Nancy/commit/eb2daf27aa6e55b5e1bfe8d944aede51884c383c