Allow to get a temporary identifier

This can be used by other objects to get a temporary identifier to be used
with synchronized branches.

Change-Id: I1d4172c23ac2bccd67749118be1edc3283f25fb5