Locked based Queue Implementation