Semaphore operations implement IdentifiedDataSerializable

fixing issue #1638