Deinitialize the OSAL layer.
Deinitialize the OSAL layer and is expected to be called after done using the OSAL layer.