Fix a race condition in languages with real threading.
Version bump to 0.12.7
failing test for #1472
font-url(/path, true) image-url(/path, true) #1472

Fix bug in the URL helpers and clean up duplication a bit.