this is totally doable as a modification -- one file only needs to be changed.. ubbthreads.php, to handle things..
it can be session, cookie, htaxx or DB based -- really.
so at least it's only one file to keep track of during upgrades..
using beyond compare makes syncing perty easy too..
ubbdev peeps might help you out some