Move service usage count tracking before/after getting/ungetting the service object as per the spec. (FELIX-1295)