Respond with 409 to POST '/users/sync' if sync is in progress

Fixes travis-ci/travis-ci#1659.

[Henrik Hodne: squashed commits]