labsdb: set innodb_locks_unsafe_for_binlog for s4-5, set high slave_transaction_retries for all shards

Change-Id: Ia1724e62f4a9ca8d711dc03487f99edfc4390ed7