mesh: send plink close to all mesh STAs while leaving mesh

Sending plink close frame to all mesh STAs while leaving mesh.
We need to do this after only we have joined the mesh network. So,
introduce a flag to indicate that we have successfully joining
the mesh network before doing so.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@cozybit.com>
Merge pull request #5 from cozybit/yeow-plink-close

Add support of sending PLINK_CLOSE frame before leaving mesh