Allow asm finishTask restriction to be enabled.

Allows the new go/activity-security restrictions to be enabled when
finishing a task based on feature flags.

Test: atest ActivitySecurityModelTest
Bug: 246738504
Change-Id: If5e633d1910c0b1588bfd1493907080b30e7c7d6
3 files changed