Not need to call deregister when the status is STATE_REG_PENDING.

Calling *lwm2m_close()* will crash when the status of the server is **STATE_REG_PENDING**. Because there is not location when the server at **STATE_REG_PENDING**.
I think it is not need to call deregister when we don't know if the client can register or not.