core/service: Fix setting wrong state after calling accept

The accept calback may transit the state to connected on the call itself
since most of the time it is just a matter of selecting the attributes
in case of GATT profiles.
1 file changed