Locking on a strict 2pl


For this question Im really unclear on what happens on step 6. Because at step 5 both T1 and T2 share a S lock on A. And T1 has requested for an X(exclusive) lock and is in waiting because T2 has an S lock. Will the X lock be granted after T2 reads in step 5 or will we encounter a deadlock? (it is a strict 2pl schedule)