The maker of popular BlackBerry mobile devices has patched a hole in its Enterprise Server that could have allowed hackers to take control of affected systems.