Fix defer_open() fuction in the open code path to cope with a NULL lck parameter.