Nifty 50 closes mixed at 23,144 amid Iran tensions, US inflation