Added possibility to unlock a process without the file resource