Before miui 10 there was an option so that you could not lower the notification bar with the screen locked (settings-> screen-> show bar of notifications with screen lock), but now this option no longer exists.