Cleanup POSIX RegisterContext class hierarchies.