As part of stop modules, the deinit connectivity logging happens and
the queue, all the pointers are deinitialized. But while
initializing the write pointer the write pointer spinlock is not
acquired. This results in null pointer dereference of write_ptr
from other context.
Protect the access to the write pointer before setting it to
NULL in wlan_connectivity_logging_stop().
Change-Id: I69dc57b9e661004203f58754824496953105726f
CRs-Fixed: 3054306