Reduced the lock timeout for the references service. Fixed indentation