Cavity linewidth narrowing with dark-state polaritons