JBeret update and changes to JBeret SPI to better handle setting up local thread contexts.