Windows: must obtain and release an actual lock