Lefschetz fibrations and the signature cocycle