Apple patches Java 6 for OS X Snow Leopard, Lion