Cleanup: Use urlresolvers.resolve in captcha middleware

This is a change from evernote/pootle#a76f657.