BeagleBoneBlackPkg: Restore SEC to transition to PEI

Restore the earlier removed SEC functionality to allow
NonTrustedWorldTransition ()
BeagleBoneBlackPkg: Add FIFO Clear Wait to SerialPortLib

Wait till FIFO clears before sending new character to SerialPortWrite().
Same for SerialPortRead().