Four different duty holders have been fined after a worker was injured while replacing a window at Leeds prison.