Serialize calls to builder.build (which is not thread-safe)

This prevents intermittent NumberFormatException errors when multiple bundles are being built concurrently.  Being a timing issue, I didn't make a test case for it but I've been using it for a week or so now and have not seen a single NumberFormatException.