playerendpoint: Do not deadlock if element is released from its own thread

Change-Id: I1958de8039b0704be98ea6d9360737ca4b77db49