fixed locking on suspend