Stop idmap2d after several seconds pass

Idmap2d is continuously running despite invocations to generate idmaps
being rare. This change stops the idmap daemon after 10 seconds without
a transaction.

Bug: 135149444
Test: manual verifications that idmaps are created and then service
      dies.

Change-Id: Ic9e131b9b4091d114ce2727ce48ff467469a3f0b
3 files changed