Fix bug in Security Group association to Instance

* Refactor of security groups to TaskManager left out an assignment that
  is required for the security_group to be attached to an intance.

fixes bug 1245767

Change-Id: I161d50b2ddb50dbf25eb67e10414425f098b9979
Merge "Fix bug in Security Group association to Instance"