MediaObject: Protect name and id with a recursive mutex

With a normal mutex we have a deadlock when getId is called from getName

Change-Id: Ic9b19433ebea620bb629cdc71b5d75c2b98bc785