Fixed dynamic library handle lifetime management for MessageBox backend functions.