[api] Actually preserve flags during project copy.

Two previous changes to src/api/app/controllers/source_controller.rb file
disabled publish and build for new project copy during the actual project
creating by the backend to prevent unnecessary package rebuilds.

However, they were not restoring flags properly in all cases.
This change fixes the problem with restoring flags.

Please note that build and publish are disabled only if nodelay parameter
is present and project creation is preformed synchronously.
There is no way to restore flags without much more intrusive change
if nodelay parameter is not present and project creation is performed
asynchronously by the delayed job, so build and publish are not disabled
at all in this case.

Signed-off-by: Oleg Girko <oleg.girko@jolla.com>