If you’re using the stock zwave lock dth, there’s a bug if you rapidly lock and unlock the door it causes an incorrect report of the status. This is also due to a defect in the lock firmware. This enhanced lock DTH has a patch to help fix the issue.
You can also try to reset the lock and pair it again, in a few cases that helps fix the issue.