client: send reconnect only when session is open

If client sends reconnect to MDS while session is still opening. The message
sequence will confuse the MDS and cause null pointer dereference.

Signed-off-by: Yan, Zheng <zyan@redhat.com>