Update store.c

fix for seg fault in pthreads_store_pop