Revert "Add openSerialWithLock & hOpenSerialWithLock"

This reverts commit 868f705f208743dc206c4a716066d05e89ba8c0d.