Rossko’s post above is the issue here. The library used to provide serial in OH currently is nrjavaserial. Here is post from another thread with links to github issue by contributer of nrjavaserial library explain issue (which is an unresolved bug)
nrjavaserial has a file leak and creates lock files which on restarts of OH can leave serial port locked