[api] write configuration not via delayed job when using "rake writeconfig"

it messes up the initial bootup otherwise