locking on suspend and hibernate