The beta version (https://www.arongranberg.com/astar/download) has some additional code that makes the agents stop if they detect the destination is already occupied. It is enabled by a toggle on the AIPath/RichAI script. That might help you.
There is no built-in function to check if the destination is inside a locked agent. You’ll have to do that check yourself.