The Registration Blocker plugin provides this feature since version 1.5.0.
Full disclosure: I am co-author and current maintainer of that plugin.