Ignoring moral and sanitary considerations of accessing a dead body, it just won't work. Most modern phones use capacitive sensing during the process. Once tissue is dead, it loses its electrical charge and will fail to activate the fingerprint sensor, making it impossible to unlock the phone this way.