Cannot unmount - Resource busy, while locking a encrypted dataset

Hi, I have encrypted a dataset. For some work on the dataset, I unlocked it and when I tried to lock it back, I am having the resource busy errors. When I looked at the processes using that directory using lsof, I found two processes, which are related to cwd. I am not in that working directory, and is there a way to kill those processes. I tried kill, but it doesn’t seem to work.

lsof +D /mnt/data/mydata   
COMMAND     PID          USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
zsh     1979314 truenas_admin  cwd    DIR  0,191        3   34 /mnt/data/mydata
zsh     2042065 truenas_admin  cwd    DIR  0,191        3   34 /mnt/data/mydata

I even tried force unmount from the GUI, and still got the Failed to umount dataset: cannot unmount '/mnt/data/mydata': pool or dataset is busy. Is there a way to solve this? Thank you.

kill -9 1979314 2042065 worked for me.