Avoiding a call to session_regenerate_id() when there is no id

Fixes #4312
Making sure the session is started before the id is regenerated
Merge pull request #4316 from cakephp/3.0-fix-session-regenerate

Avoiding a call to session_regenerate_id() when there is no id